from django.conf.urls import url
from rest_framework_jwt.views import obtain_jwt_token

from . import views

urlpatterns = [
    url(r"^usernames/(?P<username>\w{5,20})/count/$", views.RegisterUsernameCountAPIView.as_view(), name="usernamecount"),
    url(r'^phones/(?P<mobile>1[3-9]\d{9})/count/$', views.RegisterMobileCountApiView.as_view(), name="phonecount"),
    url(r'^$', views.RegisterCreateAPIView.as_view(), name="register"),
    url(r'^auths/', obtain_jwt_token, name="auths"),
]